/*
 * @Description: 
 * @Author: xiayuxuan
 * @Date: 2025-10-29 09:39:50
 * @LastEditors: xiayxuan
 * @LastEditTime: 2025-10-29 21:08:53
 * @FilePath: \工时记录\main.js
 */
import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import './uni.promisify.adaptor';
import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue';
import uniTransition from '@dcloudio/uni-ui/lib/uni-transition/uni-transition.vue';
Vue.config.productionTip = false;
Vue.component('uni-popup', uniPopup);
Vue.component('uni-transition', uniTransition);
App.mpType = 'app';
const app = new Vue({
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue';
import uniTransition from '@dcloudio/uni-ui/lib/uni-transition/uni-transition.vue';
export function createApp() {
	const app = createSSRApp(App);
	app.component('uni-popup', uniPopup);
	app.component('uni-transition', uniTransition);
	return {
		app,
	};
}
// #endif
